﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QCM.Forms
{
    public partial class LoginForm : Form
    {
        public LoginForm()
        {
            InitializeComponent();
        }

        private void okBtn_Click(object sender, EventArgs e)
        {
            if (loginTxt.Text != null && pwdTxt.Text != null)
            {
                this.Close();
            }
            else
            {
                authLbl.Text = "The form is not filled in correctly";
            }
        }

        private void cancelBtn_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        public String getLogin()
        {
            return loginTxt.Text;
        }

        public String getPassword()
        {
            return pwdTxt.Text;
        }
    }
}
